import Vue from 'vue'
import App from './App.vue'
import Vuex from "vuex";
import router from "@/router/index";
Vue.config.productionTip = false;
import store from './store'
import cesium from './lib/cesium'
import '@/assets/font/iconfont.css'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import AMap from 'vue-amap'
import "@/assets/icons"
import "swiper/css/swiper.css";
import request from '@/utils/request'
import "amfe-flexible/index.js";
import * as L from 'leaflet'
import 'leaflet.pm'
import 'leaflet/dist/leaflet.css'
import 'leaflet.pm/dist/leaflet.pm.css'
import proj4leaflet from 'proj4leaflet'
var esri = require("esri-leaflet")
import highcharts from 'highcharts'
import highcharts3d from 'highcharts/highcharts-3d'
highcharts3d(highcharts)
Vue.use(ElementUI) //组件引入
Vue.use(Vuex)
Vue.use(cesium)
import dataV from '@jiaminghi/data-view'
Vue.use(dataV)
Vue.use(L);
Vue.L = Vue.prototype.$L = L;
Vue.prototype.$esri = esri
const amapKeys = Object.keys(localStorage).filter(key => key.match(/^_AMap_/))
Vue.prototype.$request = request
amapKeys.forEach(key => {
  console.log(key)
  localStorage.removeItem(key)
})
Vue.use(AMap)
AMap.initAMapApiLoader({
  key: '55fea0b9b122e3189692fc4981d00a3b',//这里是你的高德开发者key
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
  v: '1.4.4'
});

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
